package com.fhz.shop.entity;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.annotation.NonNull;

import java.io.Serializable;

/**
 * 时间:2023/8/21
 *
 * @author Mr.Feng
 * 简述: user
 */
public class HUser implements Parcelable {


    private int userId;
    private String realname;
    private String nickname;
    private String password;
    private String birthday;
    private String phoneNumber;
    private String headImage;
    private String address;
    private String createTime;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getHeadImage() {
        return headImage;
    }

    public void setHeadImage(String headImage) {
        this.headImage = headImage;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.userId);
        dest.writeString(this.realname);
        dest.writeString(this.nickname);
        dest.writeString(this.password);
        dest.writeString(this.birthday);
        dest.writeString(this.phoneNumber);
        dest.writeString(this.headImage);
        dest.writeString(this.address);
        dest.writeString(this.createTime);
    }

    public void readFromParcel(Parcel source) {
        this.userId = source.readInt();
        this.realname = source.readString();
        this.nickname = source.readString();
        this.password = source.readString();
        this.birthday = source.readString();
        this.phoneNumber = source.readString();
        this.headImage = source.readString();
        this.address = source.readString();
        this.createTime = source.readString();
    }

    public HUser() {
    }

    protected HUser(Parcel in) {
        this.userId = in.readInt();
        this.realname = in.readString();
        this.nickname = in.readString();
        this.password = in.readString();
        this.birthday = in.readString();
        this.phoneNumber = in.readString();
        this.headImage = in.readString();
        this.address = in.readString();
        this.createTime = in.readString();
    }

    public static final Creator<HUser> CREATOR = new Creator<HUser>() {
        @Override
        public HUser createFromParcel(Parcel source) {
            return new HUser(source);
        }

        @Override
        public HUser[] newArray(int size) {
            return new HUser[size];
        }
    };
}
